package com.tyk.bookstore.back.payment.model.enume;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.back.common.core.model.type.BaseEnum;

/**
 * @author tyk
 * @description StatementNature
 */
public enum StatementNature implements BaseEnum {
    INCOME(0),
    EXPENDITURE(1);

    @JsonValue
    private final Integer code;

    StatementNature(Integer code) {
        this.code = code;
    }

    @Override
    public Integer value() {
        return code;
    }
}
